﻿<RibbonWindow x:Class="bitMail.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="bitMail" Height="479.91" Width="899.698"
        ResizeMode="CanResize" Icon="Class/Ico.ico" Closing="CloseWindow">

    <Grid Margin="0,93,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto">
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition Width="371*"/>
        </Grid.ColumnDefinitions>
        <Ribbon x:Name="RibbonWin"   SelectedIndex="0" Grid.ColumnSpan="2" Margin="0,-93,0,349" Background="White">
            <Ribbon.ApplicationMenu>
                <RibbonApplicationMenu KeyTip="F" Name="Plik" Visibility="Collapsed">
                </RibbonApplicationMenu>
            </Ribbon.ApplicationMenu>
            <!-- Ribbon Tab #1: Home -->
            <RibbonTab Header="Główna" KeyTip="H" Background="White">
                <RibbonGroup x:Name="LoadExcelFile" Margin="0,1"  BorderBrush="White" Background="White" Width="490">
                    <RibbonApplicationMenuItem VerticalAlignment="Center" HorizontalAlignment="Center" Header="Załaduj Dane" ImageSource="Images\upload.png" Click="UploadExcelFile" KeyTip="zd" Background="White"/>
                    <RibbonApplicationMenuItem VerticalAlignment="Center" HorizontalAlignment="Center" Header="Wyślij" ImageSource="Images\send_email.png" Click="OutlookLinkClick" KeyTip="w" Background="White"/>
                    <RibbonButton VerticalAlignment="Center" HorizontalAlignment="Center" Name="ZaznaczOdznacz"  Click="SelectUnselectButtnClick" Label="Zaznacz Wszystkie" SmallImageSource="Images\selection.png" Margin="120,-32,-140,32" Height="21" KeyTip="zw" Background="White"/>
                </RibbonGroup>
            </RibbonTab>
            <RibbonTab Header="Ustawienia" Margin="0,-1,504,1" RenderTransformOrigin="0.5,0.5" Background="White" KeyTip="u">
                <RibbonTab.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform AngleY="0.321"/>
                        <RotateTransform/>
                        <TranslateTransform Y="1.494"/>
                    </TransformGroup>
                </RibbonTab.RenderTransform>
                <RibbonGroup x:Name="Settings" BorderBrush="White">
                    <RibbonApplicationMenuItem VerticalAlignment="Center" HorizontalAlignment="Center" Header="Dziennik" Click="LoadDaiary"  ImageSource="Images\daiary.png" Background="White" KeyTip="d"/>
                </RibbonGroup>
            </RibbonTab>
        </Ribbon>

        <Grid HorizontalAlignment="Stretch" Margin="0,74,0,-4" 
              VerticalAlignment="Stretch" Width="Auto" Grid.ColumnSpan="2" Grid.Column="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="390*"/>
            </Grid.ColumnDefinitions>
            <DataGrid FontSize="9" RowHeaderWidth="0" SelectionMode="Extended"
                      HorizontalGridLinesBrush="LightGray"  VerticalGridLinesBrush="LightGray" EnableRowVirtualization="False"
                      EnableColumnVirtualization="False" RowDetailsVisibilityMode="Collapsed" VirtualizingStackPanel.VirtualizationMode="Standard"
                      Width="Auto" Name="ExcelGrid" AutoGenerateColumns="True" Margin="0,-66,0,34" >
            </DataGrid>

            <Label Name="PathLabel"  HorizontalAlignment="Left"  
                   RenderTransformOrigin="-1.351,-1" Background="White" BorderBrush="White" Foreground="#FF574BCB"
                   Margin="178,0,0,8" VerticalAlignment="Bottom" Width="401" Height="25" Grid.Column="0" />
            <ComboBox Name="CardNameExcelDropDown" SelectionChanged="CardNameExcelDropDown_SelectionChanged" HorizontalAlignment="Left" VerticalAlignment="Bottom" Grid.Column="4"  Margin="9,0,0,8" Width="164"/>
            <TextBox                 
                Name="SearchTxtBox" TextWrapping="Wrap" Text="" 
                RenderTransformOrigin="-1.351,-1" Background="White" BorderBrush="Blue" Foreground="#FF574BCB"
                HorizontalAlignment="Right" Height="22" Margin="0,0,68,8"  VerticalAlignment="Bottom" Width="120"/>
            <Button Content="Szukaj" RenderTransformOrigin="-1.351,-1" Background="White" BorderBrush="White" Foreground="#FF574BCB"
                    Click="BtnSearchClick" HorizontalAlignment="Right" Margin="829,0,0,11" 
                    VerticalAlignment="Bottom" Width="48">
                <Button.Template>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <ContentPresenter />
                    </ControlTemplate>
                </Button.Template>
            </Button>
        </Grid>
    </Grid>
</RibbonWindow>